package com.hopes.bizz.risk.transfer.bean.dto;

import com.hopes.bizz.risk.transfer.validation.UUID;
import com.hopes.bizz.risk.transfer.validation.group.SeqOne;
import com.hopes.bizz.risk.transfer.validation.group.SeqTwo;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;

/**
 * @author lyb
 * @version 1.0
 * @description: 风险事件
 * @date 2024/2/1 10:58
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class RiskEventDto extends RiskBaseLogicDto {

    private static final long serialVersionUID = 8315388373823073149L;

    @NotBlank(message = "风险分析单元ID不能为空", groups = SeqOne.class)
    @UUID(message = "风险分析单元ID不符合UUID正则", groups = SeqTwo.class)
    private String riskUnitId;

    @NotBlank(message = "风险事件名称不能为空", groups = SeqOne.class)
    private String riskEventName;
}
